package com.zixuan.sina.service;

import com.zixuan.sina.entity.User;
import com.zixuan.sina.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lemon
 * @since 2023-10-12
 */
public interface UserService{
    User findUserByUsername(String username);

//    Result listAll(UserVo userVo);

    Result deleteUser(Long id);

    Result addUser(User user);

    Result editUserInfo(User user);

    Result delete(Long id);

    Result findUserInfoById(Long id);

    User findUserById(String userId);

    Result getLoginUser();
    //获取当前用户的role
    String getRoles(String userId);
    public Result getInfo();

    Result logout(String token);


    Result getUserInfoById(String id,int isSpecial,String type);

    Result getUserList(String key);

    Result getUserById(String id);

}
